<div class="grid_12">
    <div class="box">
        <h2>
            <a id="toggle-login-forms" href="#">Forma</a>
        </h2>
        <div><div id="login-forms" class="block">
                <form action="./gallery/add/" method="post" enctype="multipart/form-data">
                    <fieldset class="login">
                        <legend>Naujas sąrašas</legend>
                        <p class="notice">Sukurkite naują duomenų sąrašą.</p>
                        <p style="display:<?php  if(isset($_GET['error'])){echo 'block';}else{echo 'none'; }; ?>;color:red;" ><?php echo $_GET['error']; ?></p>
                        <p><lable><?php echo $staticText['title'][0];?>:</lable><input type="text" name="title"/></p>
                        <p><lable><?php echo $staticText['description'][0];?>:</lable><textarea cols="25" rows="5" name="description"></textarea></p>
                        <p><lable><?php echo $staticText['add_photo'][0];?>:</lable><input type="file" name="photo_1"/></p>
                        <p><lable><?php echo $staticText['add_photo'][0];?>:</lable><input type="file" name="photo_2"/></p>
                        <p><lable><?php echo $staticText['add_photo'][0];?>:</lable><input type="file" name="photo_3"/></p>
                        <input type="submit" value="<?php echo $staticText['add'][0];?>"/>
                    </fieldset>
                </form>
            </div>
        </div>
    </div>
</div>
<?php if($this->isUserLogedIn()){?>
<div class="grid_4">
    <div class="box">
        <h2>
            <a id="toggle-list-items" href="#">Veiksmų sąrašas</a>
        </h2>
        <div><div id="list-items" class="block">
                <h5><?php echo $staticText['list_action'][0];?></h5>
                <ul >
                    <li>
                        <a href="./gallery/list/" ><?php echo $staticText['list'][0];?></a>
                    </li>
                </ul>
                <h5><?php echo $staticText['record_action'][0];?></h5>
                <ul>
                    <li>
                        <a href="./photo/add/form/" ><?php echo $staticText['add'][0];?></a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<?php }?>